<%--
Certificate details
@author lx 2010-09-11
--%>
<%@ include file="../../common/common.jsp"%>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<meta http-equiv="Expires" CONTENT="0">
<meta http-equiv="Cache-Control" CONTENT="no-cache">
<meta http-equiv="Pragma" CONTENT="no-cache">
<title>Activate or deactivate reg cert</title>
<script src="<c:url value="/jsp/registration/cer_assoc_manage/cer_assoc_manage_activate_or_deactivate.js"/>" type="text/javascript" charset="UTF-8"></script>
</head>

<body>
  <form id="opeForm" name="opeForm" method="post" action="">

    <%-- Page Type  0: Add; 1: Modify--%>
    <input type="hidden" id="operationType" name="operationType" value="${operationType}" /> <input type="hidden" id="cn" name="model.CN" value="${model.CN}" />

    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" class="editDisplay">
      <tr>
        <td valign="top">
          <table width="100%" border="0" cellpadding="0" cellspacing="0" class="editCaption">
            <tr>
              <td height="30">&nbsp;</td>
            </tr>
            <tr>
              <td align="center"><font class="editCaptionTitle"><c:if test="${operationType == 4 }">Activate</c:if> <c:if test="${ operationType == 5}">Deactivate</c:if> registration association</font></td>
            </tr>
            <tr>
              <td height="40"></td>
            </tr>
          </table>
          <table width="100%" border="0" cellpadding="0" cellspacing="0" class="editTableBorder">
            <tr>
              <td>
                <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="editMainLabelTD" nowrap="nowrap" align="right" style="width: 20%;">B/D user ID：&nbsp;</td>
                    <td class="editMainTD" nowrap="nowrap" align="left" style="width: 30%;">&nbsp; ${model.BD_UID}</td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" nowrap="nowrap" align="right" style="width: 20%;">Department：&nbsp;</td>
                    <td class="editMainTD" nowrap="nowrap" align="left" style="width: 30%;">&nbsp; ${model.DEPARTMENT}</td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" nowrap="nowrap" align="right" style="width: 20%;">Status：&nbsp;</td>
                    <td class="editMainTD" nowrap="nowrap" align="left" style="width: 30%;">&nbsp; ${model.STATUS}</td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right">Certificate type：&nbsp;</td>
                    <td class="editMainTD" align="left">&nbsp; ${model.CER_TYPE}</td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right">Validity start date：&nbsp;</td>
                    <td class="editMainTD" align="left">
                      <c:if test="${operationType == 4 }">
                        <input type="text" id="validity_start_date" name="model.VALIDITY_START_DATE" value="${model.VALIDITY_START_DATE}" class="editMainText" />
                      </c:if> 
                      <c:if test="${ operationType == 5}">&nbsp; ${model.VALIDITY_START_DATE}</c:if>
                    </td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right">Validity end date：&nbsp;</td>
                    <td class="editMainTD" align="left">
                      <c:if test="${operationType == 4 }">
                        <input type="text" id="validity_end_date" name="model.VALIDITY_END_DATE" value="${model.VALIDITY_END_DATE}" class="editMainText" />
                      </c:if>
                      <c:if test="${ operationType == 5}">&nbsp; ${model.VALIDITY_END_DATE}</c:if>
                      
                    </td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right">Assurance level：&nbsp;</td>
                    <td class="editMainTD" align="left">
                      <c:if test="${operationType == 4 }">
                        <input type="text" id="assurance_level" name="model.ASSURANCE_LEVEL" value="${model.ASSURANCE_LEVEL}" class="editMainText" />
                      </c:if>
                      <c:if test="${ operationType == 5}">&nbsp; ${model.ASSURANCE_LEVEL}</c:if>
                      
                    </td>
                  </tr>

                  <tr>
                    <td class="editMainConstTD" colspan="4">&nbsp;&nbsp;Note：marked <span><font color="red">*</font> </span> is required input.</td>
                  </tr>
                </table>
              </td>
            </tr>
            <tr>
              <td colspan="3" class="editMainBottomTD">&nbsp;
                <div style="text-align: center; padding: 5px;">
                  <input type="button" id="saveBtn" name="saveBtn" value="Save" style="font-size: 90%;" />&nbsp;&nbsp;&nbsp;&nbsp; <input type="button" id="cancelBtn" name="cancelBtn" value="Cancel" style="font-size: 90%;" />&nbsp;&nbsp;&nbsp;&nbsp;
                </div>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>

  </form>

</body>
</html>